<?php /* @var $video Video */ ?>

<?php if(!empty($videos)): ?>
    <?php foreach ($videos as $key => $video): ?>
    <tr>
    	<td width="92" align="right" class="style10">
    		<?php echo link_to(
    						$video->getTitle()
    						, 'textmodule/page?id=' . $video->getObjId()
    						, array( 
    							'style' => 'color:#666666'
    							)
    						)?>
    	</td>   
    	<td width="15" align="right">&nbsp;</td> 	
    	<td width="92" align="right">
    		<?php echo link_to(
    						image_tag(
    							$video->getPreviewImage()
    							, array(
    							'title' => $video->getTitle()
                                , 'alt' => $video->getTitle()
                                , 'style' => 'border: none;'
                            	)
    						)
    						, 'textmodule/page?id=' . $video->getObjId() . '&video=' . $video->getId()
    					)?>
    	</td>
    </tr>
    <tr>
    	<td align="right">&nbsp;</td>
        <td align="right">&nbsp;</td>
        <td align="right">&nbsp;</td>
    </tr>
    <?php endforeach; ?>
<?php endif; ?>
<?php if( $sf_user->isAuthenticated() == true && $sf_user->hasCredential('Admin') ): ?>
    <div id="" class="edit">
            <?php echo link_to(image_tag('monitor.gif', array('style' => 'border:0px;', 'title' => __('Attach video'))), 'video/create?obj_type=' . $obj_type . '&obj_id=' . $obj_id); ?>
    </div>
<?php endif;?>